package com.dragon.modules.yuegou.entity.order;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 订单关联京东订单实体类<br>
 * 对应的表为：ord_order_jingdong<br>
 * 
 * @author pbuilder generated
 * @date 2022-01-14 09:50:49
 * @company sgy
 * @version 2.0
 */
@TableName("ord_order_jingdong")
@ApiModel(description = "订单关联京东订单")
public class OrderJingdongEntity {

    /**  */
	protected String id;

    /** 订单号 */
	@ApiModelProperty("订单号")
	protected String orderNo;

    /** 京东订单号 */
	@ApiModelProperty("京东订单号")
	protected Long jdOrderNo;

    /** 创建时间 */
	@ApiModelProperty("创建时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空订单关联京东订单实体对象
	 */
	public OrderJingdongEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个订单关联京东订单实体对象
	 * 
	 * @param other 其它对象
	 */
	public OrderJingdongEntity(OrderJingdongEntity other){
		super();
     	this.id = other.id;
     	this.orderNo = other.orderNo;
     	this.jdOrderNo = other.jdOrderNo;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取订单号
	 * 
	 * @return orderNo 订单号
	 */
	public String getOrderNo() {
		return orderNo;
	}
  	
	/**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * 获取京东订单号
	 * 
	 * @return jdOrderNo 京东订单号
	 */
	public Long getJdOrderNo() {
		return jdOrderNo;
	}
  	
	/**
	 * 设置京东订单号
	 * 
	 * @param jdOrderNo 京东订单号
	 */
	public void setJdOrderNo(Long jdOrderNo) {
		this.jdOrderNo = jdOrderNo;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return createdTime 创建时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

    public String toString() {
		return new StringBuilder().append("OrderJingdongEntity{").
			append("id=").append(id).
			append(",orderNo=").append(orderNo).
			append(",jdOrderNo=").append(jdOrderNo).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public OrderJingdongEntity copy() {
		return new OrderJingdongEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 订单号 */
	public static final String COL_ORDER_NO = "order_no";

    /** 京东订单号 */
	public static final String COL_JD_ORDER_NO = "jd_order_no";

    /** 创建时间 */
	public static final String COL_CREATED_TIME = "created_time";
}
